home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 3318 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1017 b 

  1. Path: prairienet.org!sjmccaug
  2. From: sjmccaug@prairienet.org (Scott J. McCaughrin)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: who know how to use large array in c++?
  5. Date: 23 Jan 1996 11:16:19 GMT
  6. Organization: University of Illinois at Urbana
  7. Message-ID: <4e2g23$caf@vixen.cso.uiuc.edu>
  8. References: <4e2555$ro6@flood.weeg.uiowa.edu> <4e0ml0$jt5@mercury.wright.edu>
  9. Reply-To: sjmccaug@prairienet.org (Scott J. McCaughrin)
  10. NNTP-Posting-Host: firefly.prairienet.org
  11.  
  12.  
  13.  
  14. In <4e0ml0$jt5@mercury.wright.edu>, Apichart Intarapanich <aintara> writes:
  15. >hi
  16. >anybody know how can i declare array like this
  17. >
  18. >float a[1000][1000][1000];
  19. >
  20. >i cannot do that. i got segmentation fault statement. who know what should i
  21. >do?
  22. >apichart
  23.  
  24.   Apichart,
  25.  
  26.  How much memory do you have on your machine? Have you considered 2 vectors,
  27.  each with 1,000 pointers, to a third vector of floats? The first vector can
  28.  be considered an array of pointers to vectors of pointers, each pointer in
  29.  the vector to a vector of 1,000 floats.
  30.  
  31.  -- Scott McC.
  32.  
  33.